package com.syh.jn.scm.infrastructure.repository.model.base.upstream;

import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 经营主体
 * 商品报价
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_BASE_UPSTREAM_PRICE_TMPL")
@EqualsAndHashCode(callSuper = true)
public class UpstreamPriceTmplModel extends SuperBusinessModel {
  /**
   * 商品id
   */
  @Column(name = "GOODS_ID", columnDefinition = "bigint COMMENT '商品id'")
  private Long goodsId;
  /**
   * 起批量
   */
  @Column(name = "QUANTITY", columnDefinition = "decimal(19,2) COMMENT '起批量'")
  private BigDecimal quantity;
  /**
   * 商品价格
   */
  @Column(name = "GOODS_PRICE", columnDefinition = "decimal(19,2) COMMENT '商品价格'")
  private BigDecimal goodsPrice;
  /**
   * 最大供应量
   */
  @Column(name = "MAX_SUPPLY", columnDefinition = "decimal(19,2) COMMENT '最大供应量'")
  private BigDecimal maxSupply;
  /**
   * 状态:-1：停用 1：启用
   */
  @Column(name = "STATUS", columnDefinition = "smallint COMMENT '状态:-1：停用 1：启用'")
  private Short status;
}
